import request from '@/axios'

export const listApi = <T, R = any>(data: T): Promise<IResponse<IPageResponse<R>>> => {
  return request.get({ url: '/house/list', params: data })
}

export const addApi = <T, R = any>(data: T): Promise<IResponse<R>> => {
  return request.post({ url: '/house/add', data })
}

export const updateApi = <T, R = any>(data: T): Promise<IResponse<R>> => {
  return request.post({ url: '/house/edit', data })
}
